.class public Lcom/waiqin365/base/login/LoginModifyPassActivity;
.super Lcom/waiqin365/base/login/BaseLoginCheckActivity;


# instance fields
.field private b:Landroid/view/View;

.field private c:Landroid/widget/EditText;

.field private d:Landroid/widget/EditText;

.field private e:Lcom/waiqin365/base/login/cu;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Landroid/text/TextWatcher;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/base/login/BaseLoginCheckActivity;-><init>()V

    new-instance v0, Lcom/waiqin365/base/login/ct;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/login/ct;-><init>(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->h:Landroid/text/TextWatcher;

    return-void
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/base/login/cu;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/login/cu;-><init>(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->e:Lcom/waiqin365/base/login/cu;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/base/login/LoginModifyPassActivity;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    return-object v0
.end method

.method private b()V
    .locals 2

    const v0, 0x7f0c03d7

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    const v0, 0x7f0c03d8

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d:Landroid/widget/EditText;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    const v0, 0x7f0c03d9

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->h:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->h:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method private c()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b:Landroid/view/View;

    const v1, 0x7f020030

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->f()V

    return-void
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b:Landroid/view/View;

    const v1, 0x7f0200e1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    return-void
.end method

.method private e()V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->a:Landroid/content/Context;

    invoke-static {v0, v1, v2}, Lcom/waiqin365/base/login/d/g;->a(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d()V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/base/login/b/a/ab;

    iget-object v2, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->f:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->g:Ljava/lang/String;

    invoke-direct {v0, v1, v2, v3}, Lcom/waiqin365/base/login/b/a/ab;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/base/login/b/c;

    iget-object v2, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->e:Lcom/waiqin365/base/login/cu;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/base/login/b/c;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/login/b/d;)V

    invoke-virtual {v1}, Lcom/waiqin365/base/login/b/c;->start()V

    goto :goto_0
.end method

.method private f()V
    .locals 4

    const/4 v3, 0x6

    iget-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lt v2, v3, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lt v2, v3, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-eq v0, v1, :cond_1

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->d()V

    :goto_0
    return-void

    :cond_1
    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->c()V

    goto :goto_0
.end method


# virtual methods
.method public HeadOnClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-static {}, Lcom/waiqin365/base/login/af;->a()Lcom/waiqin365/base/login/af;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/af;->b()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c007c
        :pswitch_0
    .end packed-switch
.end method

.method public SubmitOnClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->e()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c03d9
        :pswitch_0
    .end packed-switch
.end method

.method public onBackPressed()V
    .locals 1

    invoke-static {}, Lcom/waiqin365/base/login/af;->a()Lcom/waiqin365/base/login/af;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/af;->b()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/base/login/BaseLoginCheckActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0300a6

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->g:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "tenantId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/login/LoginModifyPassActivity;->f:Ljava/lang/String;

    const v0, 0x7f08017b

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->f()V

    return-void
.end method

.method protected onDestroy()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->dismissProgressDialog()V

    invoke-super {p0}, Lcom/waiqin365/base/login/BaseLoginCheckActivity;->onDestroy()V

    return-void
.end method
